describe('practice-6-7', function () {

    it("找出这个三个人哪个是诚实族哪个是说谎族？", function () {
        var result = get_come_from_which_family();
        var first = result.first;
        var second = result.second;
        var third = result.third;
        var A, B,C;
        if(first == 'lie')  A = 0;
        else if(first == 'truth') A = 1;
        if(second == 'lie') B = 0;
        else if(second == 'truth') B = 1;
        if(third == 'lie')  C = 0;
        else if(third == 'truth') C = 1;

        if(A === 0)
        {
            expect(A+B+C!==2).toBe(true);
        }
        if(A === 1)
        {
            expect(A+B+C).toBe(2);
        }
        if(B === 1)
        {
            expect(A+B+C).toBe(1);
        }
        if(B === 0)
        {
            expect(A+B+C!==1).toBe(true);
        }
        if(C === 1)
        {
            expect(A+B+C).toBe(1);
        }
        if(C === 0)
        {
            expect(A+B+C!==1).toBe(true);
        }
    });
});
